package com.xinfu.newproject.adapter.community;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.xinfu.newproject.R;
import com.xinfu.newproject.bean.community.GetCommunityBean;
import com.xinfu.newproject.presenter.InsertCommunityPresenter;
import com.xinfu.newproject.view.IView;

/**
 * https://github.com/CymChad/BaseRecyclerViewAdapterHelper
 */
public class ChooseCommunityAdapter extends BaseQuickAdapter<GetCommunityBean.ResultBean, BaseViewHolder> {

    public ChooseCommunityAdapter() {
        super(R.layout.item_choose_community);
    }

    private InsertCommunityPresenter insertCommunityPresenter = new InsertCommunityPresenter((IView.IInsertCommunityView) mContext);

    @Override
    protected void convert(BaseViewHolder helper, GetCommunityBean.ResultBean item) {

        helper.setText(R.id.item_choose_community_name_tv, item.getName());
        helper.setText(R.id.item_choose_community_address_tv, item.getAddress());

    }


}
